import request from '@/utils/request'

// 查询商品录入列表
export function listGoods(query) {
  return request({
    url: '/system/Goods/list',
    method: 'get',
    params: query
  })
}

// 查询商品录入详细
export function getGoods(id) {
  return request({
    url: '/system/Goods/' + id,
    method: 'get'
  })
}

// 新增商品录入
export function addGoods(data) {
  return request({
    url: '/system/Goods',
    method: 'post',
    data: data
  })
}

// 修改商品录入
export function updateGoods(data) {
  return request({
    url: '/system/Goods',
    method: 'put',
    data: data
  })
}

// 删除商品录入
export function delGoods(id) {
  return request({
    url: '/system/Goods/' + id,
    method: 'delete'
  })
}

// 导出商品录入
export function exportGoods(query) {
  return request({
    url: '/system/Goods/export',
    method: 'get',
    params: query
  })
}